﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WCS_Entity.Entity
{
    /// <summary>
    /// 任务表
    /// </summary>
    [SugarTable("WCS_Task", TableDescription = "任务表")]
    public class TaskEntity
    {
        /// <summary>
        /// 任务ID
        /// </summary>
        [Display(Name = "任务ID")]
        [SugarColumn(ColumnDescription = "任务IDD", IsPrimaryKey = true, IsIdentity = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 id { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        [Display(Name = "订单编号")]
        [SugarColumn(ColumnDescription = "订单编号")]
        public string orderCode { get; set; }
        /// <summary>
        /// rcs订单编号
        /// </summary>
        [Display(Name = "rcs订单编号")]
        [SugarColumn(ColumnDescription = "rcs订单编号")]
        public string rcsTaskCode { get; set; }
        /// <summary>
        /// 所属区域
        /// </summary>
        [Display(Name = " 所属区域")]
        [SugarColumn(ColumnDescription = " 所属区域")]
        public string areaCode { get; set; }
        /// <summary>
        /// 任务状态
        /// </summary>
        [Display(Name = "任务状态")]
        [SugarColumn(ColumnDescription = "任务状态")]
        public string taskState { get; set; }
        /// <summary>
        /// 任务类型
        /// </summary>
        [Display(Name = "任务类型")]
        [SugarColumn(ColumnDescription = "任务类型")]
        public string taskType { get; set; }
        /// <summary>
        /// 执行agvCode
        /// </summary>
        [Display(Name = "执行agvCode")]
        [SugarColumn(ColumnDescription = "执行agvCode")]
        public string agvCode { get; set; }
        /// <summary>
        /// 物料类型
        /// </summary>
        [Display(Name = "物料类型")]
        [SugarColumn(ColumnDescription = "物料类型")]
        public string materialType { get; set; }
        /// <summary>
        /// 物料编号
        /// </summary>
        [Display(Name = "物料编号")]
        [SugarColumn(ColumnDescription = "物料编号")]
        public string materialCode { get; set; }
        /// <summary>
        /// 目标仓位
        /// </summary>
        [Display(Name = "目标仓位")]
        [SugarColumn(ColumnDescription = "目标仓位")]
        public string targetStorage {  get; set; }
        /// <summary>
        /// 目标巷道
        /// </summary>
        [Display(Name = "目标巷道")]
        [SugarColumn(ColumnDescription = "目标巷道")]
        public string targetRoadWay { get; set; }
        /// <summary>
        /// 当前仓位
        /// </summary>
        [Display(Name = "当前仓位")]
        [SugarColumn(ColumnDescription = "当前仓位")]
        public string sourceStorage { get; set; }
        /// <summary>
        /// 当前巷道
        /// </summary>
        [Display(Name = "当前巷道")]
        [SugarColumn(ColumnDescription = "当前巷道")]
        public string sourceRoadWay { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        [Display(Name = "错误信息")]
        [SugarColumn(ColumnDescription = "错误信息")]
        public string errMsg { get; set; }
        /// <summary>
        /// 是否完成
        /// </summary>
        [Display(Name = "是否完成")]
        [SugarColumn(ColumnDescription = "是否完成")]
        public bool isComplete { get; set; }
        /// <summary>
        /// 优先级
        /// </summary>
        [Display(Name = "优先级")]
        [SugarColumn(ColumnDescription = "优先级")]
        public string priority { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        [Display(Name = "批次号")]
        [SugarColumn(ColumnDescription = "批次号")]
        public string batchNumber { get; set; }
        /// <summary>
        /// 批任务顺序
        /// </summary>
        [Display(Name = "批任务顺序")]
        [SugarColumn(ColumnDescription = "批任务顺序")]
        public string batchTaskSeq { get; set; }
        /// <summary>
        /// 预留字段1
        /// </summary>
        [SugarColumn(ColumnName = "EXTEND1")]
        public string Extend1 { get; set; }

        /// <summary>
        /// 预留字段2
        /// </summary>
        [SugarColumn(ColumnName = "EXTEND2")]
        public string Extend2 { get; set; }

        /// <summary>
        /// 预留字段3
        /// </summary>
        [SugarColumn(ColumnName = "EXTEND3")]
        public string Extend3 { get; set; }

        /// <summary>
        /// 预留字段4
        /// </summary>
        [SugarColumn(ColumnName = "EXTEND4")]
        public string Extend4 { get; set; }

        /// <summary>
        /// 预留字段5
        /// </summary>
        [SugarColumn(ColumnName = "EXTEND5")]
        public string Extend5 { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        [Display(Name = "完成时间")]
        [SugarColumn(ColumnDescription = "完成时间")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.DateTime completeTime { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [SugarColumn(ColumnDescription = "创建时间")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.DateTime createTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        [Display(Name = "更新时间")]
        [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
        public System.DateTime? updataTime { get; set; }
        /// <summary>
        /// 删除标志 有数据就是删除
        /// </summary>
        [Display(Name = "删除标志 有数据就是删除")]
        [SugarColumn(ColumnDescription = "删除标志 有数据就是删除")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Boolean isDelete { get; set; }
    }
}
